<template>
    <div>
        <Header>
            <template v-slot:title>
                修改个人信息
            </template>
              <template v-slot:right >
               <span @click="bc">
                保存
                </span> 
            </template>
        </Header>
        <van-cell-group>
  <van-field v-model="value" />
</van-cell-group>
    </div>
</template>

<script>
import  Header  from "../Bar";
import {users} from "../../Request/http.js";
export default {
    components:{Header},
    name: 'EverydaySetinfo',

    data() {
        return {
            value:""
        };
    },

    mounted() {
        this.value=this.$route.query.name
    },

    methods: {
        bc(){
            users({nickname:this.value}).then(res=>{
                console.log(this.value);
                console.log(res);
                this.$router.push('/info')
            })
        }
    },
};
</script>

<style lang="scss" scoped>

</style>